class Fixed < ActiveRecord::Base
  has_one :fixed_auction
  has_one :auction, :through => :fixed_auction
  belongs_to :fixed_ad

  validates_numericality_of :quantity, :greater_than => 0, :less_than => 100, :if => :quantity?
  
  validates_presence_of :price
  validates_numericality_of :price, :greater_than => 0
end
